﻿
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Threading.Tasks;
using WalkingTec.Mvvm.Core;
using WalkingTec.Mvvm.Core.Extensions;
using Microsoft.EntityFrameworkCore;
using Digitalmes.Model.EquipmentManagement;
using Digitalmes.Model;

namespace Digitalmes.ViewModel.EquipmentManagement.ConsumableUsageVMs
{
    public partial class ConsumableUsageBatchVM : BaseBatchVM<ConsumableUsage, ConsumableUsage_BatchEdit>
    {
        public ConsumableUsageBatchVM()
        {
            ListVM = new ConsumableUsageListVM();
            LinkedVM = new ConsumableUsage_BatchEdit();
        }

        public override bool DoBatchEdit()
        {
            
            return base.DoBatchEdit();
        }
    }

	/// <summary>
    /// Class to define batch edit fields
    /// </summary>
    public class ConsumableUsage_BatchEdit : BaseVM
    {

        
        [Display(Name = "_Model._ConsumableUsage._Record")]
        public long? RecordId { get; set; }
        [Display(Name = "_Model._ConsumableUsage._MaterialId")]
        public long? MaterialId { get; set; }
        [Display(Name = "_Model._ConsumableUsage._MaterialName")]
        public string MaterialName { get; set; }
        [Display(Name = "_Model._ConsumableUsage._Specification")]
        public string Specification { get; set; }
        [Display(Name = "_Model._ConsumableUsage._Quantity")]
        public decimal? Quantity { get; set; }
        [Display(Name = "_Model._ConsumableUsage._Unit")]
        public string Unit { get; set; }

        protected override void InitVM()
        {
           
        }
    }

}